<template>
  <div id="app">
    <MainNavbar />
    <router-view />
  </div>
</template>

<script setup>
import MainNavbar from './components/MainNavbar.vue';
</script>

<style>
/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
}

/* 全局链接样式 */
a {
  text-decoration: none;
  color: inherit;
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 按钮基础样式 */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #2196F3;
  color: white;
}

.btn-primary:hover {
  background-color: #1976D2;
}

.btn-secondary {
  background-color: transparent;
  color: #2196F3;
  border: 1px solid #2196F3;
}

.btn-secondary:hover {
  background-color: #e3f2fd;
}

/* 卡片基础样式 */
.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* 表单元素基础样式 */
.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }
}
</style>
